import request from "@/utils/request";

export function getResourceTypeEntityDataByEntityId(entityId) {
  return request({
    url:
      "/resourcevisualization/resource/getResourceTypeEntityDataByEntityId/" +
      entityId,
    method: "get",
  });
}

export function addResourceTypeEntityData(data) {
  return request({
    url: "/resourcevisualization/resource/addResourceTypeEntityData/",
    method: "post",
    data,
  });
}

export function updateResourceTypeEntityDataByEntityIdAndFieldName(data) {
  return request({
    url:
      "/resourcevisualization/resource/updateResourceTypeEntityDataByEntityIdAndFieldName/",
    method: "post",
    data,
  });
}
